<%@ include file="IsAdmin.jsp"%><%@ page import="database.*"%>
<%    
try{
   DBCon db = new DBCon();
    String pass = request.getParameter("newpass");
    db.setAdminPass(pass);
    response.sendRedirect("index.jsp");
    }
catch(Exception e)
{
    response.sendRedirect("../connectionFailed.jsp?"+e);
}

%>